package com.example.sunmiv1.entity;

import java.util.ArrayList;
import java.util.List;

public class RetreatGoodSerialList {

    /**
     * status : 1
     * message : 查詢成功
     * data : {"count":"6","list":[{"id":"117","main_serial_number":"A8","auxiliary_serial_number_one":"","auxiliary_serial_number_two":""},{"id":"116","main_serial_number":"A7","auxiliary_serial_number_one":"","auxiliary_serial_number_two":""},{"id":"114","main_serial_number":"A5","auxiliary_serial_number_one":"","auxiliary_serial_number_two":""},{"id":"112","main_serial_number":"A3","auxiliary_serial_number_one":"","auxiliary_serial_number_two":""},{"id":"111","main_serial_number":"A2","auxiliary_serial_number_one":"","auxiliary_serial_number_two":""},{"id":"110","main_serial_number":"A1","auxiliary_serial_number_one":"","auxiliary_serial_number_two":""}]}
     */

    private int status;
    private String message;
    private DataBean data;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message == null ? "" : message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * count : 6
         * list : [{"id":"117","main_serial_number":"A8","auxiliary_serial_number_one":"","auxiliary_serial_number_two":""},{"id":"116","main_serial_number":"A7","auxiliary_serial_number_one":"","auxiliary_serial_number_two":""},{"id":"114","main_serial_number":"A5","auxiliary_serial_number_one":"","auxiliary_serial_number_two":""},{"id":"112","main_serial_number":"A3","auxiliary_serial_number_one":"","auxiliary_serial_number_two":""},{"id":"111","main_serial_number":"A2","auxiliary_serial_number_one":"","auxiliary_serial_number_two":""},{"id":"110","main_serial_number":"A1","auxiliary_serial_number_one":"","auxiliary_serial_number_two":""}]
         */

        private String count;
        private List<ListBean> list;

        public String getCount() {
            return count == null ? "" : count;
        }

        public void setCount(String count) {
            this.count = count;
        }

        public List<ListBean> getList() {
            if (list == null) {
                return new ArrayList<>();
            }
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean {
            /**
             * id : 117
             * main_serial_number : A8
             * auxiliary_serial_number_one :
             * auxiliary_serial_number_two :
             */

            private String id;
            private String main_serial_number;
            private String auxiliary_serial_number_one;
            private String auxiliary_serial_number_two;

            public String getId() {
                return id == null ? "" : id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getMain_serial_number() {
                return main_serial_number == null ? "" : main_serial_number;
            }

            public void setMain_serial_number(String main_serial_number) {
                this.main_serial_number = main_serial_number;
            }

            public String getAuxiliary_serial_number_one() {
                return auxiliary_serial_number_one == null ? "" : auxiliary_serial_number_one;
            }

            public void setAuxiliary_serial_number_one(String auxiliary_serial_number_one) {
                this.auxiliary_serial_number_one = auxiliary_serial_number_one;
            }

            public String getAuxiliary_serial_number_two() {
                return auxiliary_serial_number_two == null ? "" : auxiliary_serial_number_two;
            }

            public void setAuxiliary_serial_number_two(String auxiliary_serial_number_two) {
                this.auxiliary_serial_number_two = auxiliary_serial_number_two;
            }
        }
    }
}
